<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue使用之循环渲染</title>
    <script src="../vue.min.js" type="text/javascript"></script>
</head>
<body>
<div id="app">
    <ul>
        <!--<li v-for="(item,index) of list">{{item}}>>>{{index}}</li>-->
        <li v-for="(item,index,key) of person" :key="index">{{item}}>>>{{index}}>>>>{{key}}</li>
    </ul>
</div>

<script type="text/javascript">
    var app=new Vue({
        el: '#app',
        data:{
            // list:[1,2,3,4,5,6,7,8]
            person:{
                name: '黄小强',
                age: '35',
                sex: '男'
            }
        }
    })
</script>
</body>
</html>